package 第三个作业.地址;

class dizhi {
    String sheng;//声明对象的属性
    String shi;
    String jiedao;
    int menpaihao;
    int youbian;
    //设置构造方法并对变量赋值
    public dizhi(String sheng,String shi,String jiedao,int menpaihao,int youbian) {
            this.jiedao=jiedao;
            this.sheng=sheng;
            this.shi=shi;
            this.menpaihao=menpaihao;
            this.youbian=youbian;        
    }
    //方法获取地址信息
    public String getSheng() {
        return sheng;
    }
    public String getShi() {
        return shi;
    }
    public String getJiedao() {
        return jiedao;
    }
    public int getMenpaihao() {
        return menpaihao;
    }
    public int getYoubian() {
        return youbian;
    }
    
}
